//==========================================================================
// Copyright (c) 2000-2008,  Elastos, Inc.  All Rights Reserved.
//==========================================================================
#ifndef __CPU_FREQ_H
#define __CPU_FREQ_H

#ifdef  __cplusplus
extern "C" {
#endif

#define 	VOLT_MIN	0x0
#define 	VOLT_LOW	0x1
#define	VOLT_HIGH	0x2
#define	VOLT_MAX	0x3

struct core_freq{
	unsigned int frequency;
	unsigned int mHZ;
	unsigned int L;
	unsigned int twoN;
	unsigned int turbo;
	unsigned int b;
	unsigned int volt;
};

void ChangeVoltage(unsigned long mode);
void ChangeFreq(struct core_freq freq);
void  Change_Freq_Volt(struct core_freq freq);

#ifdef  __cplusplus
}
#endif

#endif
